package com.kkd.springcloud.service;

import com.kkd.springcloud.dao.DeptDao;
import com.kkd.springcloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 14587
 * @date 2021/1/16 10:49
 */
@Service
public class DeptServiceImpl implements DeptService{
    @Autowired
    DeptDao deptDao;
    public int addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    public Dept queryDeptById(long id) {
        return deptDao.queryDeptById(id);
    }

    public List<Dept> queryDepts() {
        return deptDao.queryDepts();
    }
}
